﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Os.WebUI.ViewModels.ClienteViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	.: Editar Cliente :.
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="headContent" runat="server">
    <script src="<%= Html.getDiretorioBase() %>Scripts/Loading.js" type="text/javascript"></script>
    <script src="<%= Html.getDiretorioBase() %>Scripts/Cliente.js" type="text/javascript" ></script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Editar</h2>

    <% using (Html.BeginForm()) {%>
       <div class="field-validation-error" ><%= Html.Encode(ViewData["Result"]) %></div>
        
        <fieldset>
            <legend>Preencha os campos Abaixo:</legend>
            
            <div class="comFloat">
                <fieldset>
                    <legend>Dados do Login:</legend>
                    <div class="editor-label">
                        <%= Html.LabelFor(model => model.user.Email) %>
                    </div>
                    <div class="editor-field">
                        <%= Html.TextBoxFor(model => model.user.Email) %>
                        <%= Html.ValidationMessageFor(model => model.user.Email) %>
                    </div>
                </fieldset>
            </div>
            <%= Html.EditorFor(model => model.cliente,new {Cidades = Model.cidades,Estados = Model.estados}) %>
            <div class="enviar">
                <input type="submit" value="Salvar" />
            </div>
        </fieldset>

    <% } %>

    <div>
        <%= Html.ActionLink("Voltar para Lista", "Index") %>
    </div>
        
</asp:Content>

